package com.train.trainmanage.mapper;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Mapper;

import com.train.trainmanage.model.TrainModel;

@Mapper
public interface TrainModelMapper {
    int deleteByPrimaryKey(Integer trainId);
    
    int deleteAll();

    int insert(TrainModel record);

    int insertSelective(TrainModel record);

    TrainModel selectByPrimaryKey(Integer trainId);

    int updateByPrimaryKeySelective(TrainModel record);

    int updateByPrimaryKey(TrainModel record);
    
    List<TrainModel> listByMap(Map<String,Object>map);
    
    int getCountByMap(Map<String,Object>map);
    
    TrainModel selectByTrainName(String trainName);
    
}